package org.dut.book.model;

import lombok.Data;

@Data
public class PageRequest {
    private int pageNumber=1;
    private int pageSize=10;
    private int offset;

    public int getOffset() {
        return (pageNumber-1)*pageSize;
    }
}
